package
{
	import com.demonsters.debugger.MonsterDebugger;
	import com.greensock.TweenNano;
	import Elegant.ELGManager;
	import flash.display.Sprite;
	import flash.events.Event;
	import flash.geom.Rectangle;
	import lynch.core.Core;
	import test.MapTest;
	
	/**
	 * ...
	 * @author 小痛
	 */
	public class Main extends Sprite
	{
		public function Main():void
		{
			if (stage)
				init();
			else
				addEventListener(Event.ADDED_TO_STAGE, init);
		}
		
		private function init(e:Event = null):void
		{
			removeEventListener(Event.ADDED_TO_STAGE, init);
			// entry point
			
			MonsterDebugger.initialize(this);
			Core.initialize(stage, startTest);
		}
		private function startTest():void 
		{
			//new ApplicationTese;
			//new ScaleTest();
			//new LoaderTest();
			//new DepthTest();
			
			new MapTest();
			//new SpeedTest();
		}
	}

}